import React,{useState} from 'react';

const Index = () => {
    const [count,setCount] =useState(0)
    const add = ()=>{
        setCount(count+1)
    }
    return (
        <div>
            <div onClick={add}>
             {count}   
            </div>
        </div>
    );
}

export default Index;
